package com.example.wlt.personnel_manegement_system.Login;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.example.wlt.personnel_manegement_system.Manager.Org.Organization;
//import com.example.wlt.personnel_manegement_system.User.Org.Organization;
import com.example.wlt.personnel_manegement_system.R;

/**
 * Created by WLT on 2016/5/12.
 */
public class Login extends Activity{

    private Button btn_login;
  //  private TextView tv_forgetpsd;
    private TextView tv_accountregist;
    private Button tv_exit;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.login);

        btn_login=(Button)findViewById(R.id.btn_login_login);
       // tv_forgetpsd=(TextView)findViewById(R.id.tv_login_forgetpassword);
        tv_accountregist=(TextView)findViewById(R.id.tv_login_accountregist);
        tv_exit=(Button)findViewById(R.id.btn_login_exit);
        tv_exit.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        //进入注册账号页面
        tv_accountregist.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent Intent=new Intent(Login.this,Regist.class);
                startActivity(Intent);
            }
        });
     /*   //进入找回密码页面
        tv_forgetpsd.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent Intent=new Intent(Login.this,Findpsd.class);
                startActivity(Intent);
            }
        });*/
        //登录
        btn_login.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent Intent=new Intent(Login.this,Organization.class);
                startActivity(Intent);
                finish();
            }
        });
    }
}
